package com.myjoje.bean.system;

import com.myjoje.base.BaseUuidBean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 权限表
 */
@Entity
@Table(name = "sy_permission")
public class PermissionBean extends BaseUuidBean {

    @Column(columnDefinition = "varchar(40) COMMENT '权限名称'")
    private String name;

    @Column(columnDefinition = "varchar(40) COMMENT '权限编码'")
    private String code;

    @Column(columnDefinition = "int COMMENT '优先级，数值越小优先级越高'")
    private Integer priority;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPriority() {
        return priority;
    }

    public void setPriority(Integer priority) {
        this.priority = priority;
    }
}
